package com.zhongyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongyu.pojo.Goods;
import com.zhongyu.vo.GoodsVo;
import com.zhongyu.vo.PageResult;

import java.util.List;

public interface GoodsService extends IService<Goods> {

    PageResult searchAll(Integer pageNo, Integer pageSize, GoodsVo goodsVo);
    List<Goods> searchAll();
    List<Goods> searchAll(Integer providerId);
  Goods searchCha(String name);
    void add(Goods goods);
    void del(Integer id);
    void update(Goods goods);
    List<Goods> findByDto(String providerId);
    List<Goods> findByDt(String typeId);
   Goods searchDui(Integer id);


}
